Pelago\Emogrifier\CssInliner C

Total Complexity 105
Dependencies 7
Dependents 2
Total lines 1,058
Lines of code 452
Logical lines of code 234
Comment lines 464
Methods 40
Properties 11

Methods 40

Method Rating Maintainability Complexity Lines of code
inlineCss()
A
46 8 38
parseCssRules()
A
46 8 37
generateStyleStringFromDeclarationsArrays()
S
50 7 28
splitCssAndMediaQuery()
S
47 5 38
getNodesToExclude()
S
57 5 17
parseCssDeclarationsBlock()
S
57 4 17
getCssSelectorPrecedence()
S
56 4 17
copyUninlinableCssToStyleNode()
S
60 4 13
existsMatchForCssSelector()
S
62 4 11
removeImportantAnnotationFromNodeInlineStyle()
S
55 3 20
extractImportAndCharsetRules()
S
57 3 18
sortBySelectorPrecedence()
S
66 4 7
copyInlinableCssToStyleAttribute()
S
59 3 15
getCssRuleMatches()
S
58 3 15
getCssFromAllStyleNodes()
S
62 3 12
replaceUnmatchableNotComponent()
S
62 3 11
normalizeStyleAttributes()
S
59 2 15
normalizeStyleAttributesOfAllNodes()
S
68 3 8
fillStyleAttributesWithMergedStyles()
S
61 2 13
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
existsMatchForSelectorInCssRule()
S
69 2 7
getCssSelectorConverter()
S
71 2 6
removeUnmatchablePseudoComponents()
S
59 1 15
getMatchingUninlinableSelectors()
S
70 2 6
removeExcludedSelector()
S
73 2 5
removeAllowedMediaType()
S
73 2 5
determineMatchingUninlinableCssRules()
S
78 1 3
generateStyleStringFromSingleDeclarationsArray()
S
80 1 3
addStyleElementToDocument()
S
66 1 8
disableStyleBlocksParsing()
S
81 1 3
attributeValueIsImportant()
S
77 1 3
addAllowedMediaType()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
removeCssComments()
S
78 1 3
getAllNodesWithStyleAttribute()
S
80 1 3
purgeVisitedNodes()
S
77 1 4
clearAllCaches()
S
69 1 8
setDebug()
S
81 1 3
addExcludedSelector()
S
80 1 3
getHeadElement()
S
80 1 3